﻿var status = -1;
var choice, choices;
var change;
var ItemID;
var ITUU = [];
var 椅子 = [[1, 1, 0], //华美椅子
	[3015014, 30, 100000], //千钧一发！
	[3015278, 30, 100000], //乌鲁斯贪吃椅子
	[3015263, 30, 100000], //黄色蛙漂流椅子
	[3010879, 20, 70000], //繁星椅子
	[3015297, 20, 70000], //人生逆转！兴夫椅子
	[3015248, 20, 70000], //孤独旅行者椅子
	[3015236, 20, 70000], //粉色蛙漂流椅子
	[3010079, 20, 70000], //肥猫猫椅子
	[3015257, 20, 70000], //月下庭院椅子
	[3012030, 20, 70000], //和你在一起椅子
	[3010723, 20, 70000], //法式贵族扶手椅
	[5204012, 20, 70000], //呆萌兔兔靠垫椅
	[3015182, 20, 70000], //蝶恋花椅子
	[3015380, 20, 70000], //蕉蕉仙人椅
	[3015384, 20, 70000], //金咕隆咚伸缩棒椅子
	[3010830, 20, 70000], //天王星椅子
	[3010739, 10, 35000], //雪人香波椅子
	[3010523, 10, 35000], //白云漫步椅
	[3010716, 10, 35000], //超级蘑菇椅子
	[3010057, 10, 35000], //血色玫瑰
	[3010183, 10, 35000], //胡萝卜椅子
	[3010453, 10, 35000], //兔子乘风椅子
	[3015109, 10, 35000], //花花幻想曲
	[3012019, 10, 35000], //爱琴海椅子
	[3013002, 10, 35000], //烟花祭
	[3010799, 10, 35000], //坟墓幽灵椅子
	[3010744, 10, 35000], //冒险岛的砖头朋友们
	[3010735, 10, 35000], //浪漫长椅
	[3010703, 10, 35000], //彩虹椅子
	[3010720, 10, 35000], //勇士们，我爱你~
	[3014000, 10, 35000], //惊人漫画椅子
	[3010719, 10, 35000], //小幽灵卡斯珀
	[3010223, 10, 35000], //狗狗好乖椅
	[3010757, 10, 35000], //你和我
	[3010670, 10, 35000], //绝对指环椅子
	[3015003, 10, 35000], //永恒斯乌枕头椅
	[3014000, 10, 35000], //惊人漫画椅子
	[3015343, 10, 35000], //冰雪企鹅王椅子
	[3015031, 10, 35000], //闪耀冒险岛椅
	[3015034, 10, 35000], //和羊咩咩一起椅子
	[3015302, 10, 35000], //安德洛墨达椅子
	[3012026, 10, 35000], //旋转花茶杯情侣椅子
];

var 上衣 = [[1, 1, 0], //精美上衣
	[1049002, 15, 50000], // 花蘑菇9周年T恤
	[1049003, 15, 50000], // 绿水灵9周年T恤
	[1042373, 15, 50000], // 喜庆T恤
	[1042371, 15, 50000], // 蓝莓糖果套头衫
	[1042176, 15, 50000], // I LOVE CHINA
	[1042368, 15, 50000], // 蓝色雪花卫衣
	[1042367, 15, 50000], // 邪恶熊熊T恤
	[1042364, 15, 50000], // 喜庆T恤
	[1042360, 15, 50000], // 樱桃兔子卫衣
	[1042357, 15, 50000], // 幽灵小白
	[1042350, 15, 50000], // 海豚T恤
	[1042349, 15, 50000], // 黑色摇滚连帽衫
	[1042348, 15, 50000], // 名牌上衣
	[1042343, 15, 50000], // 黑色嘻哈连帽衫
	[1042202, 15, 50000], // 小企企卷边T恤
	[1042338, 15, 50000], // 熊孩子套衫(黄)
	[1042337, 15, 50000], // 熊孩子套衫(粉)
	[1042336, 15, 50000], // 微笑玉米衫
	[1042334, 15, 50000], // 绿喵喵喵脸上衣
	[1042330, 15, 50000], // 露肩baby装
	[1042329, 15, 50000], // 糖果色T恤
	[1042321, 15, 50000], // 心花怒放T恤
	[1042320, 15, 50000], // 海鸥印花T恤
	[1042316, 15, 50000], // 粉色萌萌象T恤
	[1042315, 15, 50000], // 蓝色萌萌象T恤
	[1042314, 15, 50000], // 兔熊T恤
	[1042313, 15, 50000], // 蘑蘑菇T恤（柠檬黄）
	[1042312, 15, 50000], // 蘑蘑菇T恤（冰雪蓝）
	[1042311, 15, 50000], // 彩糖T恤
	[1042251, 15, 50000], // 蛇年嘻哈卫衣
	[1042235, 15, 50000], // 爱丽丝兔上衣
	[1042232, 15, 50000], // 灰主流套衫
	[1042222, 15, 50000], // 柠檬色可爱T恤
	[1042220, 15, 50000], // 亮片表演上装
	[1042198, 15, 50000], // 彩虹T恤
	[1042194, 15, 50000], // 经典款T恤
	[1042189, 15, 50000], // 羊羊上衣
	[1042172, 15, 50000], // 高尔夫上衣
	[1042156, 15, 50000], // 银河系T恤
	[1042142, 15, 50000], // 彩虹条背心
	[1042125, 15, 50000], // 兔兔包T恤
	[1042037, 15, 50000], // 白色冬恋大衣
	[1042036, 15, 50000], // 红色冬恋大衣
	[1042030, 15, 50000], // 绿水灵T恤
	[1041144, 15, 50000], // 复古校服(上衣)
	[1041129, 15, 50000], // 黄蛋糕吊带
	[1041130, 15, 50000], // 蓝蛋糕吊带
	[1040001, 15, 50000], // 黑西装
];

var 套服 = [[1, 1, 0], //稀有点装
	[1050381, 15, 46000], //超能力者校服
	[1051451, 15, 46000], //超能力者校服
	[1052576, 15, 46000], //斯乌黑色之翼制服
	[1052940, 15, 46000], //春日阳光套衫
	[1052852, 15, 46000], //暴走斯乌连身服
	[1052941, 15, 46000], //格斯斯乌制服
	[1052416, 15, 46000], //奥尔卡军官服
	[1052853, 15, 46000], //奥尔卡的病号服
	[1052948, 15, 46000], //奥尔卡的睡袍
	[1053006, 15, 46000], //暖绒兔长裙
	[1052942, 15, 46000], //蓝色熊猫玩偶服
	[1052921, 15, 46000], //蓝色金鱼全身服
	[1052922, 15, 46000], //红色金鱼全身服
	[1052782, 15, 46000], //蓝色小马憨憨背带裤
	[1052296, 15, 46000], //天蓝女仆套装
	[1051456, 15, 46000], //爱情蓝鸟连衣裙
	[1050386, 15, 46000], //爱情蓝鸟套服
	[1050210, 15, 46000], //蓝色小背带服
	[1050300, 15, 46000], //蓝色雪糕帅锅装
	[1050301, 15, 46000], //蓝色格纹假日服
	[1050342, 15, 46000], //蓝色巴尼兔背带裤
	[1051256, 15, 46000], //蓝色小背带裙
	[1051367, 15, 46000], //蓝色雪糕MM装
	[1052926, 15, 46000], //贵族复古礼服
	[1052923, 15, 46000], //黑猫连帽衫
	[1052910, 15, 46000], //水晶喵喵全身服
	[1052911, 15, 46000], //水晶喵喵连衣裙
	[1052727, 15, 46000], //快乐连体衫
	[1052728, 15, 46000], //快乐连衣裙
	[1052724, 15, 46000], //小马乖乖套服
	[1050414, 15, 46000], //爷们沐浴袍
	[1052626, 15, 46000],
	[1051414, 15, 46000],
	[1051385, 15, 46000],
	[1050314, 15, 46000],
	[1052605, 15, 46000],
	[1052709, 15, 46000],
	[1052657, 15, 46000],
	[1050310, 15, 46000],
	[1052656, 15, 46000],
	[1051366, 15, 46000],
	[1052550, 15, 46000],
	[1050319, 15, 46000],
	[1051390, 15, 46000],
	[1051392, 15, 46000],
	[1050299, 15, 46000],
	[1052781, 15, 46000],
	[1050152, 15, 46000], //水兵服(男)
	[1051180, 15, 46000], //水兵服(女)
	[1052224, 15, 46000], //草莓baby装
	[1052200, 15, 46000], //罗丽粉色娃娃套服
	[1052061, 15, 46000], //巴西足球服No.9
	[1052059, 15, 46000], //法国足球服No.14
	[1051131, 15, 46000], //圣诞女孩子服
	[1051152, 15, 46000], //玫瑰红晚宴裙
	[1050210, 15, 46000],
	[1051280, 15, 46000],
	[1052426, 15, 46000],
	[1051278, 15, 46000],
	[1050229, 15, 46000],
	[1050227, 15, 46000],
	[1051235, 15, 46000],
	[1052201, 15, 46000],
	[1050232, 15, 46000],
	[1051282, 15, 46000],
	[1052425, 15, 46000],
	[1052412, 15, 46000],
	[1052455, 15, 46000],
	[1052503, 15, 46000],
	[1051261, 15, 46000],
	[1050230, 15, 46000],
	[1050231, 15, 46000],
	[1051149, 15, 46000],
	[1051192, 15, 46000],
	[1051255, 15, 46000],
	[1051256, 15, 46000],
	[1052593, 15, 46000],
	[1052536, 15, 46000],
	[1050312, 15, 46000],
	[1052661, 15, 46000],
	[1050119, 15, 46000],
];

var 宠物 = [[1, 1, 0], //可爱宠物
	[5000720, 15, 66666, 50], //羊驼小灰灰
	[5000719, 15, 66666, 50], //羊驼布朗尼
	[5000718, 15, 66666, 50], //羊驼萌萌
	[5000697, 15, 66666, 50], //吸血喵
	[5000675, 15, 66666, 50], //小扎昆
	[5000674, 15, 66666, 50], //大海奥尔卡
	[5000673, 15, 66666, 50], //芒果奥尔卡
	[5000672, 15, 66666, 50], //苹果奥尔卡
	[5000642, 15, 66666, 50], //蓝色路西德
	[5000624, 15, 66666, 50], //粉色小熊猫
	[5000639, 15, 66666, 50], //小比熊犬
	[5000638, 15, 66666, 50], //女巫的小白喵
	[5000637, 15, 66666, 50], //女巫的小灰喵
	[5000636, 15, 66666, 50], //女巫的小黑喵
	[5000635, 15, 66666, 50], //喵喵酱COCO
	[5000634, 15, 66666, 50], //喵喵酱白莎莎
	[5000633, 15, 66666, 50], //喵喵酱小奶酪
	[5000632, 15, 66666, 50], //小比格
	[5000631, 15, 66666, 50], //小神鸦
	[5000621, 15, 66666, 50], //萨摩耶
	[5000620, 15, 66666, 50], //牧羊犬
	[5000610, 15, 66666, 50], //绵软蛋糕
	[5000608, 15, 66666, 50], //小乌龟奈奈
	[5000607, 15, 66666, 50], //小青蛙嘟嘟
	[5000602, 15, 66666, 50], //钢铁兔
	[5000583, 15, 66666, 50], //蜜桃鲁提
	[5000567, 15, 66666, 50], //棉花糖-小粉
	[5000566, 15, 66666, 50], //棉花糖-LV
	[5000565, 15, 66666, 50], //棉花糖-云朵
	[5000541, 15, 66666, 50], //永恒的玉兔
	[5000529, 15, 66666, 50], //永恒的小肥喵
	[5000496, 15, 66666, 50], //小利琳
	[5000493, 15, 66666, 50], //波斯猫
	[5000492, 15, 66666, 50], //小隐月
	[5000491, 15, 66666, 50], //小双弩精灵
	[5000490, 15, 66666, 50], //小夜光法师
	[5000485, 15, 66666, 50], //小战神
	[5000484, 15, 66666, 50], //小龙神
	[5000480, 15, 66666, 50], //冰龙
	[5000476, 15, 66666, 50], //糖果宝宝
	[5000475, 15, 66666, 50], //嘎嘣派
	[5000470, 15, 66666, 50], //流浪猫奇兹
	[5000469, 15, 66666, 50], //小内罗
	[5000466, 15, 66666, 50], //魔力鸭宠物
	[5000465, 15, 66666, 50], //橙子
	[5000464, 15, 66666, 50], //姜饼人
	[5000461, 15, 66666, 50], //王子古德
	[5000460, 15, 66666, 50], //王子马林
	[5000448, 15, 66666, 50], //曲奇熊卡龙
	[5000446, 15, 66666, 50], //草莓熊卡龙
	[5000435, 15, 66666, 50], //宽恕羊
	[5000432, 15, 66666, 50], //新粉色海豹II
	[5000427, 15, 66666, 50], //咖啡弟
	[5000426, 15, 66666, 50], //红茶妹
	[5000425, 15, 66666, 50], //绿抹茶君
	[5000424, 15, 66666, 50], //棉花糖-羊咩咩
	[5000417, 15, 66666, 50], //布迪 格里梅尔
	[5000416, 15, 66666, 50], //布迪 奥尔卡
	[5000415, 15, 66666, 50], //布迪 斯乌
	[5000407, 15, 66666, 50], //橙色蜥蜴
	[5000404, 15, 66666, 50], //小士兵阿蓝
	[5000383, 15, 66666, 50], //小阿琅
	[5000382, 15, 66666, 50], //科学怪狗
	[5000377, 15, 66666, 50], //蓝企鹅
	[5000375, 15, 66666, 50], //粉企鹅
	[5000368, 15, 66666, 50], //快乐豆豆
	[5000367, 15, 66666, 50], //芒果泡芙
	[5000366, 15, 66666, 50], //草莓泡芙
	[5000365, 15, 66666, 50], //猕猴桃泡芙
	[5000354, 15, 66666, 50], //粉红蜡烛
	[5000353, 15, 66666, 50], //蓝蜡烛
	[5000352, 15, 66666, 50], //白蜡烛
	[5000345, 15, 66666, 50], //贝勒德
	[5000344, 15, 66666, 50], //小栗栗黑头
	[5000341, 15, 66666, 50], //明日之袋鼠
	[5000332, 15, 66666, 50], //MINI希拉
	[5000331, 15, 66666, 50], //MINI奥尔卡
	[5000322, 15, 66666, 50], //铠鼠牛顿
	[5000320, 15, 66666, 50], //铠鼠爱因
	[5000317, 15, 66666, 50], //冰骑士
	[5000309, 15, 66666, 50], //血腥女王
	[5000308, 15, 66666, 50], //魔犬托斯
	[5000307, 15, 66666, 50], //魔犬盖兹
	[5000301, 15, 66666, 50], //魔犬纱兹
	[5000299, 15, 66666, 50], //姜饼人
	[5000298, 15, 66666, 50], //恶魔小紫
	[5000296, 15, 66666, 50], //恶魔小红
	[5000295, 15, 66666, 50], //紫色鲁提
	[5000294, 15, 66666, 50], //薄荷鲁提
	[5000292, 15, 66666, 50], //天使米尔
	[5000285, 15, 66666, 50], //鱼尾狮
	[5000268, 15, 66666, 50], //甜心蝴蝶
	[5000269, 15, 66666, 50], //刺猬
	[5000264, 15, 66666, 50], //跳跳袋鼠
	[5000258, 15, 66666, 50], //南瓜兰顿
	[5000255, 15, 66666, 50], //爱马士
	[5000253, 15, 66666, 50], //阿黛尔
	[5000250, 15, 66666, 50], //粉小熊
	[5000245, 15, 66666, 50], //红色龙
	[5000238, 15, 66666, 50], //啊呜啊呜
	[5000233, 15, 66666, 50], //魔族迪亚
	[5000217, 15, 66666, 50], //黑暗灵魂
	[5000216, 15, 66666, 50], //小马驹桑丘
	[5000215, 15, 66666, 50], //胖嘟嘟浣熊
	[5000211, 15, 66666, 50], //（未用重复）海盗鹦鹉
	[5000210, 15, 66666, 50], //（未用重复）企鹅
	[5000209, 15, 66666, 50], //龙
	[5000208, 15, 66666, 50], //医疗熊猫
	[5000206, 15, 66666, 50], //沙漠狐
	[5000205, 15, 66666, 50], //猩猩崩克
	[5000204, 15, 66666, 50], //阿德里亚诺
	[5000152, 15, 66666, 50], //神奇猫
	[5000096, 15, 66666, 50], //稀有白色小象
	[5000092, 15, 66666, 50], //独角兽迪埃尔
	[5000072, 15, 66666, 50], //臭鼬
	[5000067, 15, 66666, 50], //淘气小外星人
	[5000065, 15, 66666, 50], //潜水玩具鸭
	[5000056, 15, 66666, 50], //巨嘴鸟
	[5000044, 15, 66666, 50], //橙色老虎
	[5000040, 15, 66666, 50], //鬼灵精怪
	[5000041, 15, 66666, 50], //雪娃娃
	[5000038, 15, 66666, 50], //萌太郎
	[5000029, 15, 66666, 50], //宝贝龙
	[5000027, 15, 66666, 50], //猪八戒
	[5000026, 15, 66666, 50], //齐天大圣
	[5000007, 15, 66666, 50], //黑小猪
	[5000498, 15, 66666, 50], //沙漠狐狸
//======================================================================================
	[5000369, 22, 88888, 50], //小拉伊
	[5000622, 22, 88888, 50], //金毛犬***
	[5000653, 22, 88888, 50], //神鸡***
	[5000640, 22, 88888, 50], //黄金小熊猫***
	[5000686, 22, 88888, 50], //萌小鸡***
	[5000616, 22, 88888, 50], //长尾山雀宠物***
	[5000601, 22, 88888, 50], //拳击猫***
	[5000600, 22, 88888, 50], //美美熊***
	[5000473, 22, 88888, 50], //小乌鲁斯***
	[5000471, 22, 88888, 50], //家猫三顺***
	[5000447, 22, 88888, 50], //香蕉熊卡龙***
	[5000445, 22, 88888, 50], //小猫奈落***
	[5000444, 22, 88888, 50], //莉莉喵***
	[5000414, 22, 88888, 50], //小亚敏***
	[5000391, 22, 88888, 50], //黄金虾***
	[5000386, 22, 88888, 50], //可可娃娃***
	[5000385, 22, 88888, 50], //焦糖娃娃***
	[5000371, 22, 88888, 50], //小阿尔***
	[5000330, 22, 88888, 50], //MINI班雷昂***
	[5000328, 22, 88888, 50], //夏日半半***
	[5000324, 22, 88888, 50], //火柴人宠物***
	[5000261, 22, 88888, 50], //潮流兔子***
	[5000251, 22, 88888, 50], //蓝小熊***
	[5000239, 22, 88888, 50], //鱼缸里的鲨鱼***
	[5000225, 22, 88888, 50], //小绵羊朵朵***
	[5000191, 22, 88888, 50], //神马***
	[5000094, 22, 88888, 50], //稀有粉雪人***
	[5000055, 22, 88888, 50], //水晶银圣诞鹿***
	[5000053, 22, 88888, 50], //大猩猩机器人***
	[5000016, 22, 88888, 50], //云豹***
	[5000237, 22, 88888, 50], //坠落的小流星***
	[5000249, 22, 88888, 50], //米小熊***
	[5000463, 22, 88888, 50], //烤栗子***
	[5000468, 22, 88888, 50], //坠落的小流星***
	[5000528, 22, 88888, 50], //猫鼬家族***
	[5000497, 22, 88888, 50], //魔族迪亚***
	[5000483, 22, 88888, 50], //呆萌小狐猴***
//====================================================================================
	[5000370, 30, 120000, 50], //小波波****
	[5000609, 30, 120000, 50], //小老虎灵灵*****
	[5000443, 30, 120000, 50], //埃尔文狗狗*****
	[5000495, 30, 120000, 50], //小阿丽莎*****
	[5000494, 30, 120000, 50], //小戴米安*****
	[5000409, 30, 120000, 50], //小瑞恩*****
	[5000408, 30, 120000, 50], //小希爱拉*****
	[5000428, 30, 120000, 50], //孤独雪人*****
	[5000381, 30, 120000, 50], //拓拓凹凸曼*****
	[5000281, 30, 120000, 50], //New麦图斯*****
	[5000095, 30, 120000, 50], //稀有银色雪犬*****
];


var 礼包 = [[2, 0, 0], //惊喜礼包
	[2434007, 700, 0], //S级法弗纳武器箱子
	[2431938, 300, 0], //法弗纳武器箱子
	[2432069, 800, 0], //暴君防具箱子
	[2432341, 300, 0], //150级防具箱子
	[2431944, 100, 0], //140级武器箱子
	[2431945, 100, 0], //140级防具箱子
	[2433028, 200, 0], //140级副手箱子
	[2431868, 80, 0]//贝勒德系列箱子
];


var 帽子 = [[1, 1, 0], //比例ok
	[1004167, 10, 35000],
	[1004282, 10, 35000],
	[1003952, 10, 35000],
	[1003131, 10, 35000],
	[1004094, 10, 35000],
	[1004112, 10, 35000],
	[1004211, 10, 35000],
	[1004193, 10, 35000],
	[1003859, 10, 35000],
	[1004137, 10, 35000],
	[1003831, 10, 35000],
	[1003955, 10, 35000],
	[1004095, 10, 35000],
	[1004029, 10, 35000],
	[1003204, 10, 35000],
	[1004110, 10, 35000],
	[1001083, 10, 35000],
	[1001095, 10, 35000],
	[1004200, 10, 35000],
	[1003892, 10, 35000],
	[1004124, 10, 35000],
	[1003953, 10, 35000],
	[1001097, 10, 35000],
	[1000074, 10, 35000],
	[1004200, 10, 35000],
	[1001076, 10, 35000],
	[1004204, 10, 35000],
	[1004205, 10, 35000],
	[1003950, 10, 35000],
	[1004126, 10, 35000],
	[1002846, 10, 35000],
	[1004158, 10, 35000],
	[1004114, 10, 35000],
	[1002598, 10, 35000],
	[1004157, 10, 35000],
	[1004156, 10, 35000],
	[1004025, 10, 35000],
	[1004093, 10, 35000],
	[1002845, 10, 35000],
	[1002721, 10, 35000],
	[1002568, 10, 35000],
	[1002888, 10, 35000],
	[1002890, 10, 35000],
	[1002863, 10, 35000],
	[1003207, 10, 35000],
	[1003051, 10, 35000],
	[1003048, 10, 35000],
	[1002995, 10, 35000],
	[1003012, 10, 35000],
	[1002876, 10, 35000],
	[1002839, 10, 35000],
	[1001048, 10, 35000],
	[1003214, 10, 35000],
	[1003141, 10, 35000],
	[1003269, 10, 35000],
	[1003268, 10, 35000],
	[1003492, 10, 35000],
	[1003493, 10, 35000],
	[1003494, 10, 35000],
	[1003495, 10, 35000],
	[1003496, 10, 35000],
	[1003519, 10, 35000],
	[1003520, 10, 35000],
	[1002726, 10, 35000],
	[1002524, 10, 35000],
	[1002714, 10, 35000],
	[1002841, 10, 35000],
	[1003220, 10, 35000],
	[1003170, 10, 35000],
	[1003226, 10, 35000],
	[1000050, 10, 35000],
	[1003232, 10, 35000],
	[1001064, 10, 35000],
	[1001075, 10, 35000],
	[1003252, 10, 35000],
	[1003249, 10, 35000],
	[1001036, 10, 35000],
	[1002998, 10, 35000],
	[1003091, 10, 35000],
	[1003114, 10, 35000],
	[1003075, 10, 35000],
	[1000043, 10, 35000],
	[1003149, 10, 35000],
	[1002988, 10, 35000],
	[1003417, 10, 35000],
	[1003271, 10, 35000],
	[1003196, 10, 35000],
	[1003193, 10, 35000],
];

var 骑宠 = [[1, 1, 0],
	[2432100, 40, 130000], //南瓜马车永久权
	[2434276, 40, 130000], //冲浪板90天权
	[2433003, 40, 130000], //闪耀气球骑宠（永久）
	[2432995, 40, 130000], //后起跑车骑宠（永久）
	[2432996, 40, 130000], //梦幻跑车骑宠（永久）
	[2432085, 40, 130000], //海豚骑宠永久劵
	[2431797, 40, 130000], //天马永久券
	[2434277, 40, 130000], //极光鹿永久券
	[2434517, 40, 130000], //夜晚火车永久券
	[2432635, 40, 130000], //斯文骑宠90天权
	[2432645, 40, 130000], //毛驴骑宠永久券
	[2432653, 40, 130000], //舞动的向日葵骑宠
	[2431697, 40, 130000], //蜜蜂小火车永久
	[2433002, 40, 130000], //传说滑板骑宠永久券
	[2433001, 40, 130000], //精英滑板骑宠永久券
	[2431473, 40, 130000], //和品克缤一起旅行骑宠永久使用券
	[2432309, 40, 130000], //吉尼骑宠永久使用券
	[2432582, 40, 130000], //迟到了
	[2432015, 40, 130000], //赤红沙云骑宠
	[2432151, 40, 130000], //飞行床骑宠
	[2432500, 40, 130000], //新年快乐骑宠
	[2434737, 40, 130000], //小纸船骑宠
	[2432361, 40, 130000], //堕天使路西法骑宠
	[2431426, 40, 130000], //月亮骑宠
	[2434593, 40, 130000], //卡牌大师
	[2433406, 40, 130000], //赫丽娜搀扶骑宠
	[2434649, 40, 130000], //香气屁骑宠
	[2432449, 40, 130000], //飞鞋骑宠
	[2432431, 40, 130000], //龙骑士骑宠
	[2434377, 40, 130000], //逆生长骑宠
	[2434127, 40, 130000], //菇菇有点肿骑宠
	[2433058, 40, 130000], //双跳喷气式滑艇骑宠
	[2433052, 40, 130000], //双跳猫咪手推车骑宠
	[2432735, 40, 130000], //熊猫骑宠
	[2432733, 40, 130000], //雄鹰！骑宠
	[2434084, 40, 130000], //黑色天使骑宠
	[2432806, 40, 130000], //官轿骑宠
	[2432295, 40, 130000], //贝伦骑宠
	[2432149, 40, 130000], //稻香四溢骑宠
	[2432078, 40, 130000], //地狱犬骑宠
];


var 手套 = [[1, 1, 0], //比例OK
	[1082581, 10, 35000],
	[1082555, 10, 35000],
	[1082549, 10, 35000],
	[1082548, 10, 35000],
];

var 戒指 = [[1, 1, 0], //比例OK
	[1112238, 50, 160000],
	[1112135, 50, 160000],
	[1112118, 50, 160000],
	[1112119, 50, 160000],
	[1112120, 50, 160000],
	[1112228, 50, 160000],
	[1112229, 50, 160000],
	[1112230, 50, 160000],
	[1112170, 10, 35000],
	[1112282, 10, 35000],
	[1112166, 10, 35000],
	[1112278, 10, 35000],
	[1112176, 10, 35000],
	[1112288, 10, 35000],
	[1112162, 10, 35000],
	[1112274, 10, 35000],
	[1112159, 10, 35000],
	[1112271, 10, 35000],
	[1112158, 10, 35000],
	[1112270, 10, 35000],
	[1112157, 10, 35000],
	[1112269, 10, 35000],
	[1112268, 10, 35000],
	[1112156, 10, 35000],
	[1112266, 10, 35000],
	[1112154, 10, 35000],
	[1112149, 10, 35000],
	[1112261, 10, 35000],
	[1112177, 10, 35000],
	[1112289, 10, 35000],
	[1112181, 10, 35000],
	[1112294, 10, 35000],
	[1112178, 10, 35000],
	[1112290, 10, 35000],
	[1112150, 10, 35000],
	[1112262, 10, 35000],
	[1112263, 10, 35000],
	[1113021, 10, 35000],
	[1112151, 10, 35000],
	[1112155, 10, 35000],
	[1112267, 10, 35000],
	[1112236, 10, 35000],
	[1112126, 10, 35000],
	[1112943, 10, 35000],
	[1112904, 10, 35000], //彩虹星环绕戒指
	[1112103, 10, 35000],
	[1112141, 10, 35000],
	[1112252, 10, 35000],
	[1112253, 10, 35000],
	[1112142, 10, 35000],
	[1112930, 10, 35000],
	[1112136, 10, 35000],
	[1112920, 10, 35000],
	[1112145, 10, 35000],
	[1112257, 10, 35000],
	[1112146, 10, 35000],
	[1112258, 10, 35000],
	[1112254, 10, 35000],
	[1112143, 10, 35000],
	[1112928, 10, 35000],
	[1112907, 10, 35000],
	[1112937, 10, 35000],
	[1112101, 10, 35000],
	[1112204, 10, 35000],
];

var 武器 = [[1, 1, 0], //比例OK
	[1702224, 20, 70000], // 透明装备
	[1342069, 20, 70000], // 空气刃
	[1702764, 20, 70000], // 执法者铁锤
	[1702758, 20, 70000], // 骷髅王麦克风武器
	[1702753, 20, 70000], // 潘多拉武器
	[1702752, 20, 70000], // 雪之铃兰武器
	[1702750, 20, 70000], // 草莓跳绳
	[1702749, 20, 70000], // 情书包
	[1702742, 20, 70000], // 超星魔导杖
	[1702748, 20, 70000], // 春之豚鼠武器
	[1702740, 20, 70000], // 出动吧，冲锋鸡！
	[1702739, 20, 70000], // 手掌荧光棒
	[1702733, 20, 70000], // 超大童摇鼓
	[1702732, 20, 70000], // New帽子里的兔子
	[1702731, 20, 70000], // 雪兔子
	[1702729, 20, 70000], // 只要有你在
	[1702728, 20, 70000], // 蜜糖脚掌武器
	[1702727, 20, 70000], // 萌兔泡泡棒武器
	[1702726, 20, 70000], // 一闪一闪南瓜星
	[1702725, 20, 70000], // 降灵术士
	[1702723, 20, 70000], // 三只小猪
	[1702722, 20, 70000], // 冬季兔兔
	[1702721, 20, 70000], // 死亡之字
	[1702720, 20, 70000], // 冒险岛M智能手机
	[1702719, 20, 70000], // 春之花卉娃娃
	[1702718, 20, 70000], // 暗影剑
	[1702717, 20, 70000], // 心动爱情粉笔
	[1702716, 20, 70000], // 晨露阳伞
	[1702715, 20, 70000], // 拉克兰幻想曲
	[1702714, 20, 70000], // 多彩狗爪爪武器
	[1702713, 20, 70000], // 万圣节女巫权杖
	[1702712, 20, 70000], // 兔摇铃
	[1702711, 20, 70000], // 猫头鹰魔导书
	[1702710, 20, 70000], // 镰鼬武器
	[1702707, 20, 70000], // 邦尼的臭臭胡萝卜
	[1702706, 20, 70000], // 给我冰淇淋
	[1702705, 20, 70000], // 熊宝宝撇嘴游泳圈
	[1702704, 20, 70000], // 蓝色海军之治学热情
	[1702703, 20, 70000], // 蝴蝶幽兰
	[1702702, 20, 70000], // 兔兔扇纸武器
	[1702701, 20, 70000], // 龙魔祭九剑
	[1702699, 20, 70000], // 炫彩沙滩排球
	[1702697, 20, 70000], // 一杯喵星人
	[1702696, 20, 70000], // 银狼
	[1702695, 20, 70000], // 爆力卖萌小柴
	[1702694, 20, 70000], // 玫瑰绽放
	[1702693, 20, 70000], // 露水泡泡
	[1702692, 20, 70000], // 照相鸡自拍杆
	[1702691, 20, 70000], // 妖精佛罗拉
	[1702690, 20, 70000], // 枫叶贵族长杖
	[1702688, 20, 70000], // 闪耀金话筒
	[1702687, 20, 70000], // 恋恋草莓武器
	[1702685, 20, 70000], // 火凤鸟
	[1702684, 20, 70000], // 青鸾鸟
	[1702682, 20, 70000], // 海鲜串武器
	[1702681, 20, 70000], // 水晶之心漂流瓶
	[1702680, 20, 70000], // 山茶花之剑
	[1702679, 20, 70000], // 淘气黑猫
	[1702677, 20, 70000], // 戴米安玩偶
	[1702676, 20, 70000], // 缪斯水晶麦克风
	[1702675, 20, 70000], // 绒绒雪妖精
	[1702673, 20, 70000], // 猴子香蕉
	[1702672, 20, 70000], // 小鸭子单肩背包
	[1702671, 20, 70000], // 圣经武器
	[1702669, 20, 70000], // 公主日记武器
	[1702668, 20, 70000], // 享受冬季手鼓
	[1702666, 20, 70000], // 战神玩偶
	[1702660, 20, 70000], // 调皮雪人武器
	[1702659, 20, 70000], // 大师时间
	[1702654, 20, 70000], // 温泉喵
	[1702651, 20, 70000], // 被遗忘的英雄拳甲
	[1702648, 20, 70000], // 战神之矛摩诃
	[1702638, 20, 70000], // 蓝色海军之治学热情
	[1702637, 20, 70000], // 音乐律动武器箱
	[1702636, 20, 70000], // 北极杀人豚




	[1702634, 20, 70000], // 小蘑菇和史莱姆的基情僵尸秀 
	[1702631, 20, 70000], // 玫瑰誓约
	[1702630, 20, 70000], // 吊篮花灯
	[1702629, 20, 70000], // 那时的最新款手机
	[1702628, 20, 70000], // 荣耀的黄金鸡蛋杆


	[1702627, 20, 70000], // 樱花之刃


	[1702625, 20, 70000], // 爱情蓝鸟武器
	[1702620, 20, 70000], // 神秘骰子
	[1702619, 20, 70000], // 啦啦啦大葱
	[1702617, 20, 70000], // 幻想莲花武器
	[1702616, 20, 70000], // 魔力鸭棒棒糖
	[1702612, 20, 70000], // 精灵匹克
	[1702611, 20, 70000], // 小鸭单肩包
	[1702608, 20, 70000], // 海军条纹雨伞
	[1702607, 20, 70000], // 拔丝胡萝卜
	[1702606, 20, 70000], // 鱿鱼
	[1702605, 20, 70000], // 甜甜圈
	[1702603, 20, 70000], // 肋骨牛排
	[1702602, 20, 70000], // 汉堡
	[1702601, 20, 70000], // 培根
	[1702599, 20, 70000], // 啊呜！赫雅
	[1702598, 20, 70000], // 枫叶武器xxxxx
	[1702595, 20, 70000], // 薄荷喵下午茶
	[1702594, 20, 70000], // 奥尔卡瞌睡
	[1702593, 20, 70000], // 清冷天空竹子
	[1702591, 20, 70000], // 飞翔浪漫
	[1702590, 20, 70000], // 雪糕武器
	[1702589, 20, 70000], // 樱花物语
	[1702586, 20, 70000], // 梦想的蒲公英
	[1702583, 20, 70000], // 喵咪薯片桶
	[1702581, 20, 70000], // 三色蛋糕串串
	[1702579, 20, 70000], // 水晶喵喵武器
	[1702577, 20, 70000], // 金鱼泡泡兜
	[1702576, 20, 70000], // 啪嗒啪嗒打糕武器
	[1702575, 20, 70000], // 爱情巧克力篮子
	[1702574, 20, 70000], // 迅猛兽
	[1702571, 20, 70000], // 天下第一铲
	[1702570, 20, 70000], // 绵软雪兔
	[1702566, 20, 70000], // 羊羊魔术棒
	[1702565, 20, 70000], // 死亡之刃
	[1702564, 20, 70000], // 妙趣悠悠球
	[1702562, 20, 70000], // 圣诞雪人
	[1702560, 20, 70000], // 泰迪小伙伴(棕)
	[1702557, 20, 70000], // 清扫掸子
	[1702556, 20, 70000], // 进击之刀
	[1702554, 20, 70000], // 可怕大手掌
	[1702553, 20, 70000], // 危险药瓶
	[1702551, 20, 70000], // 中秋柿子树枝
	[1702550, 20, 70000], // 桃太郎武器
	[1702549, 20, 70000], // 拉拉队手摇花
	[1702548, 20, 70000], // 黄金香蕉
	[1702544, 20, 70000], // 啦啦啦～甩葱
	[1702541, 20, 70000], // 完美宝贝
	[1702538, 20, 70000], // 露珠武器
	[1702534, 20, 70000], // 嘟嘟奶嘴
	[1702529, 20, 70000], // 影子煤油灯
	[1702526, 20, 70000], // 鸟铳剑
	[1702523, 20, 70000], // 晴日彩虹
	[1702504, 20, 70000], // 冰封之心
	[1702503, 20, 70000], // 巴尼兔的彩虹泡沫
	[1702486, 20, 70000], // 茶花纷飞
	[1702485, 20, 70000], // 大包小包
	[1702473, 20, 70000], // 岩炎执行者
	[1702470, 20, 70000], // 自由灵魂
	[1702469, 20, 70000], // 阿拉克尼
	[1702468, 20, 70000], // 松脆巧克力干酪棒
	[1702459, 20, 70000], // 棉花糖武器
	[1702457, 20, 70000], // 冬天里的雪糕
	[1702455, 20, 70000], // 真红油漆桶
	[1702453, 20, 70000], // 雷霆之怒
	[1702450, 20, 70000], // 熊宝宝是机灵鬼
	[1702449, 20, 70000], // 喜欢草莓
	[1702446, 20, 70000], // 和海獭一起
	[1702444, 20, 70000], // 费尔玛塔
	[1702443, 20, 70000], // 人偶师的约定
	[1702442, 20, 70000], // 棒球棒
	[1702437, 20, 70000], // 下花雨的春日
	[1702433, 20, 70000], // 莎莉曼德
	[1702436, 20, 70000], // 异界之器
	[1702427, 20, 70000], // 翁布拉鲁切雷光剑
	[1702421, 20, 70000], // 龙奴
	[1702420, 20, 70000], // 水晶光芒
	[1702416, 20, 70000], // 萝卜帝
	[1702415, 20, 70000], // 睡梦绵羊枕头
	[1702407, 20, 70000], // 飞翔的蒲公英武器
	[1702406, 20, 70000], // 坠星魔术空间
	[1702405, 20, 70000], // 星光之心魔棒
	[1702403, 20, 70000], // 侦探的巨型放大镜
	[1702399, 20, 70000], // 尼奥拯救者
	[1702398, 20, 70000], // 魔灯精灵
	[1702397, 20, 70000], // 溢彩银河
	[1702390, 20, 70000], // 喵喵雨伞
	[1702382, 20, 70000], // 满月柿子树枝
	[1702375, 20, 70000], // 亚特兰蒂斯
	[1702372, 20, 70000], // 圣杯武器
	[1702368, 20, 70000], // 黑暗蝴蝶魔棒
	[1702367, 20, 70000], // 玫瑰苏菲亚
	[1702366, 20, 70000], // 冰鲨鱼
	[1702357, 20, 70000], // 坠星魔术空间
	[1702350, 20, 70000], // 巧克力蛋糕魔法棒
	[1702348, 20, 70000], // 雪片
	[1702347, 20, 70000], // 怪盗幻影权杖xx
	[1702342, 20, 70000], // 奥尔卡的兔娃娃
	[1702334, 20, 70000], // 水晶幻想曲
	[1702302, 20, 70000], // 杯具 
	[1702300, 20, 70000], // 电蚊拍
	[1702295, 20, 70000], // 扑克牌
	[1702285, 20, 70000], // 蓝色蝴蝶结手提包
	[1702277, 20, 70000], // 密码签字笔
	[1702275, 20, 70000], // 皇家彩虹伞
	[1702261, 20, 70000], // 樱花棒
	[1702262, 20, 70000], // 小嫩叶
	[1702155, 20, 70000], // 绚丽彩虹
];

var 披风 = [[1, 1, 0], //比例OK
	[1102723, 50, 160000],
	[1102724, 50, 160000],
	[1102450, 20, 70000],
	[1102451, 20, 70000],
	[1102452, 20, 70000],
	[1102511, 20, 70000],
	[1102385, 20, 70000],
	[1102386, 20, 70000],
	[1102487, 20, 70000],
	[1102466, 20, 70000],
	[1102572, 20, 70000],
	[1102309, 20, 70000],
	[1102308, 20, 70000],
	[1102307, 20, 70000],
	[1102709, 20, 70000],
	[1102699, 20, 70000],
	[1102376, 20, 70000],
	[1102548, 20, 70000],
	[1102587, 20, 70000],
	[1102550, 20, 70000],
	[1102349, 20, 70000],
	[1102325, 20, 70000],
	[1102326, 20, 70000],
	[1102338, 20, 70000],
	[1102757, 10, 35000],
	[1102683, 10, 35000],
	[1102705, 10, 35000],
	[1102620, 10, 35000],
	[1102583, 10, 35000],
	[1102676, 10, 35000],
	[1102644, 10, 35000],
	[1102726, 10, 35000],
	[1102142, 10, 35000],
	[1102697, 10, 35000],
	[1102688, 10, 35000],
	[1102669, 10, 35000],
	[1102225, 10, 35000], //嫦娥披风
	[1102217, 10, 35000], //九尾披风
	[1102157, 10, 35000], //傀儡枷锁
	[1102503, 10, 35000],
	[1102380, 10, 35000],
	[1102238, 10, 35000],
	[1102245, 10, 35000],
	[1102285, 10, 35000],
	[1102286, 10, 35000],
	[1102287, 10, 35000],
	[1102270, 10, 35000],
	[1102273, 10, 35000],
	[1102288, 10, 35000],
	[1102253, 10, 35000],
	[1102298, 10, 35000],
	[1102299, 10, 35000],
	[1102297, 10, 35000],
	[1102319, 10, 35000],
	[1102272, 10, 35000],
	[1102323, 10, 35000],
	[1102324, 10, 35000],
	[1102350, 10, 35000],
	[1102374, 10, 35000],
	[1102353, 10, 35000],
	[1102357, 10, 35000],
	[1102593, 10, 35000],
	[1102564, 10, 35000],
	[1102615, 10, 35000],
	[1102453, 10, 35000],
];

var 饰品 = [[1, 1, 0], //比例OK
	[5010101, 20, 70000],
	[5010104, 10, 35000],
	[5010044, 10, 35000],
	[1012253, 10, 35000],
	[1012134, 10, 35000],
	[1022194, 10, 35000],
	[1022217, 10, 35000],
	[1012131, 10, 35000],
	[1012179, 10, 35000],
	[1012208, 10, 35000],
	[1012165, 10, 35000],
	[1012412, 10, 35000],
	[1012413, 10, 35000],
];

var 裤子 = [[1, 1, 0], //比例OK
[1050342, 10,70000],
[1062203, 10,70000],
[1062210, 10,70000],
[1061113, 10,70000],
[1062204, 10,70000],
[1062171, 10,70000],
[1062172, 10,70000],
[1052782, 10,70000],
[1062093, 10,70000],
[1061148, 10,70000],
[1061207, 10,70000],
[1062156, 10,70000],
[1062157, 10,70000],
[1060181, 10,70000],
[1062174, 10,70000],
[1062072, 10,70000],
[1062173, 10,70000],
];

var 鞋子 = [[1, 1, 0], //比例OK
[1073046,10,70000],
[1073050,10,70000],
[1073056,10,70000],
[1073058,10,70000],
[1073059,10,70000],
[1073060,10,70000],
[1073061,10,70000],
[1073062,10,70000],
[1073074,10,70000],
[1073075,10,70000],
[1073076,10,70000],
[1073078,10,70000],
[1073079,10,70000],
[1073082,10,70000],
[1073088,10,70000],
[1073090,10,70000],
[1073092,10,70000],
[1073098,10,70000],
[1073105,10,70000],
[1073106,10,70000],
[1073109,10,70000],
[1073127,10,70000],
[1073129,10,70000],
[1073144,10,70000],
[1073145,10,70000],
];

var 道具 = [[2, 1, 0], //各种道具
		[2500000, 9, 35000], // SP初始化卷轴
		[5840003, 1, 850],   // 转蛋机钥匙
		[5520000, 2, 8000],  // 宿命剪刀 
		[5520001, 4, 15000], // 白金宿命剪刀
		[5840004, 2, 6000],  // 怪怪卡牌包钥匙
		[5060052, 7, 28000], // 椅子工具箱
		[5840007, 8, 30000], // 椅子专用万花筒钥匙
		[5060049, 15,60000], // 伤害皮肤卡牌包
		[5840006, 25,90000], // 伤害皮肤万花筒钥匙
		[2070023, 6, 20000], // 火焰飞镖
		[2070019, 12,50000], // 高科技电光镖
		[2330007, 12,50000], // 高科技穿甲弹
		[5840000, 4, 15000], // 品客缤敲敲乐1阶段
		[5840001, 7, 25000], // 品客缤敲敲乐2阶段
		[5840002, 9, 35000], // 品客缤敲敲乐3阶段

		[5064000, 1, 3500],  // 防爆卷轴
		[5743003, 1, 3000],  // 怪怪魔方
		[5530269, 1, 5000],  // 金光潜能印章
		[5062010, 2, 7000],  // 终极神奇魔方
		[5062009, 2, 6000],  // 超级神奇魔方
		[5062002, 2, 6000],  // 高级神奇魔方
		[5062500, 2, 6000],  // 大师附加神器魔方
		[2049124, 2, 8000],  // 正向混沌卷轴
		[5750001, 2, 8000],  // 星岩电钻
		[5062800, 2, 8000],  // 神奇还原器
		[5062400, 3, 9000],  // 神奇铁砧
		[5064100, 4, 15000], // 保护卷轴
		[5064003, 4, 15000], // 极真保护卷轴
		[5062024, 4, 15000], // 闪炫神奇魔方
		[2610001, 5, 17000], // 封印解除卷轴
		[2340000, 9, 31300], // 祝福卷
		[2048315, 11, 39000],// 特殊附加潜能附加卷轴100%
		[2049762, 33, 147000],//S级潜能卷轴100%

		[5072000, 1, 220],   // 粉色喇叭
		[5074000, 1, 370],   // 大红喇叭
		[5079001, 1, 400],   // 蛋糕喇叭
		[5076000, 1, 650],   // 道具喇叭
		[5390003, 1, 1500],  // 新年祝福情景喇叭
		[5390005, 1, 1500],  // 小老虎情景喇叭 
		[5390007, 1, 1500],  // 球进了！情景喇叭
		[5390006, 1, 1500],  // 老虎咆哮喇叭
		[5390010, 1, 1500],  // 鬼出没喇叭
		[5390018, 1, 1500],  // 赤兔马喇叭
		[5390019, 1, 1500],  // 新闻联播喇叭
		[5390025, 1, 1500],  // 海底世界情景喇叭
		[5390030, 1, 1500],  // 猴子情景情景喇叭
		[5390022, 1, 1500],  // 追赶小羊的狼情景喇叭
		[5192000, 2, 3500],  // 宠物训练箱子

		[2614002, 15, 60000], // 百万突破之石
		[2048094, 12, 45000],  // 专属宠物攻击卷轴
		[2048095, 12, 45000],  // 专属宠物魔力卷轴
		[2612076, 16, 67000],  // V双手攻击卷轴
		[2613064, 16, 67000],  // V单手攻击卷轴
		[2613065, 16, 67000],  // V双手魔力卷轴
		[2612077, 16, 67000],  // V单手魔力卷轴
		[2616074, 16, 67000],  // V防具攻击卷轴
		[2616075, 16, 67000],  // V防具魔力卷轴
		[2615043, 16, 67000],  // V饰品攻击卷轴
		[2615044, 16, 67000],  // V饰品魔力卷轴

];
var Mulu = [道具, 椅子, 武器, 骑宠, 宠物, 帽子, 饰品, 披风, 套服,  手套, 戒指, 裤子,鞋子,上衣];
var eff = "#fUI/UIWindow.img/Family/BtRight/normal/0#" //蓝色框型箭头
	var eff1 = "#fUI/UIWindow2.img/QuestIcon/3/0#"; //选择物品图标
var tz3 = "#fEffect/CharacterEff/1082588/0/0#"; //红点
var tz4 = "#fEffect/CharacterEff/1082588/3/0#"; //蓝点
var t = "#fEffect/CharacterEff/1112905/0/1#"; //小红心

var a = "#fUI/UIWindow.img/PvP/Scroll/enabled/next2#";
var b = "#fUI/UIWindow/PartySearch2/BtNext/mouseOver/0#"; //箭头
var c = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/0#"; //黑
var d = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/1#"; //红
var e = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/2#"; //橙
var f = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/3#"; //黄
var h = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/4#"; //绿
var i = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/5#"; //亲
var j = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/6#"; //紫
var k = "#fUI/CashShop.img/CSBeauty/hairColor/Enable/7#"; //褐
var l = "#fUI/Basic.img/BtMin2/normal/0#"; //箭头
var m = "#fUI/UIPVP.img/MiniMapIcon/star#"; //黄星星
var n = "#fUI/UIToolTip.img/Item/Equip/Star/Star1#"; //蓝星星
var o = "#fUI/UIWindow/Quest/icon7/10#"; ////红色圆
var p = "#fUI/UIWindow/Quest/icon8/0#"; ////蓝指标
var q = "#fEffect/CharacterEff/1112946/2/0#"; //砖石粉
var r = "#fEffect/CharacterEff/1112946/1/1#"; //砖石蓝
var s = "#fEffect/CharacterEff/1082565/0/0#"; //饼干兔子
var u = "#fEffect/CharacterEff/1003271/0/0#"; //红色心心
var v = "#fEffect/CharacterEff/1112946/4/1#"; //钻石
var w = "#fEffect/CharacterEff/1082229/0/0#"; //红心
var x = "#fUI/UIWindowTW.img/TimeCapsule/BtClose/disabled/0#"; //叉叉

var UI11 = "#fUI/UIWindowJP/Zipangu_UI/NPC/1/Skill/icon#";
var UI22 = "#fUI/UIWindowJP/Zipangu_UI/NPC/2/Skill/icon#";
var UI33 = "#fUI/UIWindowJP/Zipangu_UI/NPC/3/Skill/icon#";
var UI44 = "#fUI/UIWindowJP/Zipangu_UI/NPC/4/Skill/icon#";
var UI55 = "#fUI/UIWindowJP/Zipangu_UI/NPC/5/Skill/icon#";
var UI66 = "#fUI/UIWindowJP/Zipangu_UI/NPC/6/Skill/icon#";
var UI77 = "#fUI/UIWindowJP/Zipangu_UI/NPC/7/Skill/icon#";
var UI88 = "#fUI/UIWindowJP/Zipangu_UI/NPC/8/Skill/icon#";

var icon = Array(a, b, c, d, e, f, h, i, j, k, l, m, n, o, p, q, r, s, u, v, w, x);
var ic = icon[Math.floor(Math.random() * icon.length)];

var shop = "";
var One = false;

function fengefu(n) { //千位分隔符，增加保留小数
	var rx = /(\d+)(\d{3})/;
	return String(n).replace(/^\d+/, function (w) {
		while (rx.test(w)) {
			w = w.replace(rx, '$1,$2');
		}
		return w;
	});
}

function start() {
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if ((status == 0 || status > 2) && mode == 0) {
		cm.dispose();
		return;
	}
	if (mode == 1) {
		status++;
	} else {
		status--;
	}
	if (status == 0) {
		One = false;
		text = "#e#d\t\t  " + tz4 + "" + tz3 + "" + cm.getServerName() + " 购物中心 " + tz3 + "" + tz4 + "#n#k\r\n";
		text += " \t\t当前拥有: #k余额:#r#e" + cm.getHyPay(1) + "#k#k	#n#k点卷：#r#e" + cm.getPlayer().getCSPoints(1) + "#k#n\r\n";
		text += " " + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + t + "\r\n#b";
		text += "  #L0#" + UI11 + "各类道具#l  #L50#" + UI22 + "造型沙龙#l  #L1#" + UI33 + "华丽椅子#l\r\n\r\n";
		text += "  #L2#" + UI44 + "现金武器#l  #L3#" + UI55 + "个性骑宠#l  #L4#" + UI66 + "可爱宠物#l\r\n\r\n";
		text += "  #L5#" + UI77 + "现金帽子#l  #L6#" + UI88 + "饰品效果#l  #L7#" + UI11 + "现金披风#l\r\n\r\n";
		text += "  #L11#" + UI22 + "现金裤子#l  #L12#" + UI33 + "现金鞋子#l  \r\n\r\n";
		//text+= "  #L9#"+ t +"杂物百货#l  #L10#"+ t +"个性骑宠#l  #L99#"+ t +"抵用商城#l";
		cm.sendSimpleS(text, 2);
	} else if (status == 1) {
		if (!One) {
			One = true;
			ItemID = Mulu[selection];
		}
		if (selection == 99) {
			cm.dispose();
			cm.openNpc(9310072, "抵用商店");
			return;
		}
		if (selection == 50) {//造型沙龙
			cm.dispose();
			cm.openNpc(9390213);
			return;
		}
		if (ItemID[0][2] < 100 && ItemID[0][2] > 0) { //打折显示
			shop = " #fUI/CashShop.img/CSTab/OnSale/0#";
		}
		var Weihu = "";
		if (ItemID[0][1] == 0) {
			if (!cm.isAdmin()) { //该类道具购买开放检测
				cm.playerMessage(1, "该商店处于维护中");
				cm.dispose();
				return;
			}
			Weihu = "#r（该类商品处于维护状态）#k";
		}
		text = "  " + eff1 + shop + Weihu + "\r\n";
		for (var i = 1; i < ItemID.length; i++) {
			text += "#L"+i+"##i"+ItemID[i][0]+"##l 	 ";

		}
		cm.sendSimpleS(text, 2);
	} else if (status == 2) {
		var 期限;
		if (ItemID[selection][3] == undefined) {
			期限 = "#r无限制#b";
		} else if (ItemID[selection][3] > 1000) {
			期限 = "#r" + (ItemID[selection][3] / 3600000) + " #b小时";
		} else {
			期限 = "#r" + ItemID[selection][3] + " #b天";
		}
		text = "#r>>> #e商品详情：#n#k\r\n";
		if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
			ITUU[1] = Math.floor(ItemID[selection][1] - ItemID[selection][1] * (ItemID[0][2] / 100));
			ITUU[1] = (Math.floor(ItemID[selection][1] - ItemID[selection][1] * (ItemID[0][2] / 100)) < 1 ? 1 : ITUU[1]);
			ITUU[2] = Math.floor(ItemID[selection][2] - ItemID[selection][2] * (ItemID[0][2] / 100));
			ITUU[2] = (Math.floor(ItemID[selection][2] - ItemID[selection][2] * (ItemID[0][2] / 100)) < 1 ? 1 : ITUU[2]);
			ITUU[3] = "#fUI/CashShop.img/CSDiscount/" + (Math.floor(ItemID[0][2] / 10)) + "#";
			ITUU[4] = "#fUI/CashShop.img/CSDiscount/" + (ItemID[0][2] % 10) + "#";
			ITUU[5] = "#fUI/CashShop.img/CSDiscount/e#";
			ITUU[6] = "#fUI/CashShop.img/CSDiscount/w#";
			text = "#r>>> #e商品详情：#n#r（该类型商品正在打折中↓）#k\r\n";
		}
		text += "\t#b商品图标：#k#v" + ItemID[selection][0] + "#\r\n";
		text += "\t#b商品名称：#r#z" + ItemID[selection][0] + "##k\r\n";
		text += "\t#b商品使用期限：" + 期限 + "#k\r\n\r\n";
		text += "#r>>> #e商品价格：#n#k\r\n\r\n";
		if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
			if (ItemID[selection][1] == 0) {
				text += "\t#b折后单价：#r" + fengefu("" + ITUU[2] + "") + " #b点卷#d（无法使用#b余额#d购买）#k" + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
			} else if (ItemID[selection][2] == 0) {
				text += "\t#b折后单价：#r" + fengefu("" + ITUU[1] + "") + " #b余额#d（无法使用#b点券#d购买）#k" + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
			} else {
				text += "\t#b折后单价：#r" + fengefu("" + ITUU[1] + "") + " #b余额 / #r" + fengefu("" + ITUU[2] + "") + " #b点卷#k " + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
			}
		} else {
			if (ItemID[selection][1] == 0) {
				text += "\t#b商品原价：#r" + fengefu("" + ItemID[selection][2] + "") + " #b点卷#d（无法使用#b余额#d购买）#k";
			} else if (ItemID[selection][2] == 0) {
				text += "\t#b商品原价：#r" + fengefu("" + ItemID[selection][1] + "") + " #b余额#d（无法使用#b点券#d购买）#k";
			} else {
				text += "\t#b商品原价：#r" + fengefu("" + ItemID[selection][1] + "") + " #b余额 / #r" + fengefu("" + ItemID[selection][2] + "") + " #b点卷#k";
			}
		}
		text += "\r\n\r\n";
		switch (ItemID[0][0]) {
		case 1:
			text += "#r>>> #e支付方式：#n#k\r\n";
			if (ItemID[selection][1] == 0) {
				text += "\t#b#L2#支付方式：#r点券 #b支付#l#k\r\n";
			} else if (ItemID[selection][2] == 0) {
				text += "\t#b#L1#支付方式：#r余额 #b支付#l#k\r\n";
			} else {
				text += "\t\t#b#L1##r余额 #b支付#l\t\t\t#L2##r点券 #b支付#l#k\r\n";
			}
			cm.sendSimple(text);
			break;
		case 2:
			text += "#r>>> #e购买数量：#n#k\r\n";
			text += "#b（请在下方空栏中输入你要购买的商品数量）#k";
			cm.sendGetNumber(text, 1, 1, 999999999);
			break;
		default:
			cm.playerMessage(1, "出现错误");
			cm.dispose();
			break;
		}
		choice = selection;
	} else if (status == 3) {
		var 期限;
		if (ItemID[choice][3] == undefined) {
			期限 = "#r无限制#b";
		} else if (ItemID[choice][3] > 1000) {
			期限 = "#r" + (ItemID[choice][3] / 3600000) + " #b小时";
		} else {
			期限 = "#r" + ItemID[choice][3] + " #b天";
		}
		if (ItemID[0][0] == 1) {
			var show = "#b购买数量：#r该类道具默认为1#k";
		} else {
			var show = "#b购买数量：#r" + selection + "#k";
		}
		text = "#r>>> #e商品详情：#n#k\r\n";
		if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
			ITUU[1] = Math.floor(ItemID[choice][1] - ItemID[choice][1] * (ItemID[0][2] / 100));
			ITUU[1] = (Math.floor(ItemID[choice][1] - ItemID[choice][1] * (ItemID[0][2] / 100)) < 1 ? 1 : ITUU[1]);
			ITUU[2] = Math.floor(ItemID[choice][2] - ItemID[choice][2] * (ItemID[0][2] / 100));
			ITUU[2] = (Math.floor(ItemID[choice][2] - ItemID[choice][2] * (ItemID[0][2] / 100)) < 1 ? 1 : ITUU[2]);
			ITUU[3] = "#fUI/CashShop.img/CSDiscount/" + (Math.floor(ItemID[0][2] / 10)) + "#";
			ITUU[4] = "#fUI/CashShop.img/CSDiscount/" + (ItemID[0][2] % 10) + "#";
			ITUU[5] = "#fUI/CashShop.img/CSDiscount/e#";
			ITUU[6] = "#fUI/CashShop.img/CSDiscount/w#";
			text = "#r>>> #e商品详情：#n#r（该类型商品正在打折中↓）#k\r\n";
		} else {
			ITUU[1] = ItemID[choice][1];
			ITUU[2] = ItemID[choice][2];
		}
		text += "\t#b商品图标：#k#v" + ItemID[choice][0] + "#\t" + show + "\r\n";
		text += "\t#b商品名称：#r#z" + ItemID[choice][0] + "##k\r\n";
		text += "\t#b商品使用期限：" + 期限 + "#k\r\n\r\n";
		text += "#r>>> #e商品价格：#n#k\r\n\r\n";
		if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
			if (ItemID[choice][1] == 0) {
				text += "\t#b折后单价：#r" + fengefu("" + ITUU[2] + "") + " #b点卷#d（无法使用#b余额#d购买）#k" + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
			} else if (ItemID[choice][2] == 0) {
				text += "\t#b折后单价：#r" + fengefu("" + ITUU[1] + "") + " #b余额#d（无法使用#b点券#d购买）#k" + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
			} else {
				text += "\t#b折后单价：#r" + fengefu("" + ITUU[1] + "") + " #b余额 / #r" + fengefu("" + ITUU[2] + "") + " #b点卷#k " + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
			}
		} else {
			if (ItemID[choice][1] == 0) {
				text += "\t#b商品原价：#r" + fengefu("" + ItemID[choice][2] + "") + " #b点卷#d（无法使用#b余额#d购买）#k";
			} else if (ItemID[choice][2] == 0) {
				text += "\t#b商品原价：#r" + fengefu("" + ItemID[choice][1] + "") + " #b余额#d（无法使用#b点券#d购买）#k";
			} else {
				text += "\t#b商品原价：#r" + fengefu("" + ItemID[choice][1] + "") + " #b余额 / #r" + fengefu("" + ItemID[choice][2] + "") + " #b点卷#k";
			}
		}
		text += "\r\n\r\n";
		switch (ItemID[0][0]) {
		case 1:
			if (selection == 1) {
				text += "#r>>> #e支付方式：#r余额#n#k\r\n\r\n";
				var show = "#r" + fengefu("" + ITUU[1] + "") + " #b个余额";
			} else if (selection == 2) {
				text += "#r>>> #e支付方式：#r点券#n#k\r\n\r\n";
				var show = "#r" + fengefu("" + ITUU[2] + "") + " #b点点券";
			}
			text += "\t#b购买该道具需要支付 " + show + "\r\n";
			text += "\t您是否继续购买？点击#r“是”#b订单立即生效，概不退换！#k\r\n";
			cm.sendYesNo(text);
			ItemID[0][99] = 1; //道具结算开启
			break;
		case 2:
			text += "#r>>> #e支付方式：#n#k\r\n";
			if (ItemID[choice][1] == 0) {
				text += "\t#b#L2#支付方式：#r点券 #b支付#l#k\r\n";
			} else if (ItemID[choice][2] == 0) {
				text += "\t#b#L1#支付方式：#r余额 #b支付#l#k\r\n";
			} else {
				text += "\t\t#b#L1##r余额 #b支付#l\t\t\t#L2##r点券 #b支付#l#k\r\n";
			}
			cm.sendSimple(text);
			break;
		default:
			cm.playerMessage(1, "出现错误");
			cm.dispose();
			break;
		}
		choice = choice;
		change = selection;
	} else if (status == 4) {
		var 商品数量 = 1;
		if (ItemID[0][0] == 2) {
			商品数量 = choices;
		}
		var 商品id = ItemID[choice][0];
		var 余额 = ItemID[choice][1] * 商品数量;
		var 点券 = ItemID[choice][2] * 商品数量;
		var 期限 = ItemID[choice][3];
		if (ItemID[0][99] == 1) { //结算过程
			if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
				余额 = (Math.floor(ItemID[choice][1] - ItemID[choice][1] * (ItemID[0][2] / 100))) * 商品数量;
				点券 = (Math.floor(ItemID[choice][2] - ItemID[choice][2] * (ItemID[0][2] / 100))) * 商品数量;
			}
			if (change == 1 && cm.getGMLevel() != 6 && cm.getHyPay(1) < 余额) { //余额支付检测
				cm.playerMessage(1, "余额不足");
				cm.dispose();
				return;
			}
			if (change == 2 && cm.getGMLevel() != 6 && cm.getPlayer().getCSPoints(1) < 点券) { //点券支付检测
				cm.playerMessage(1, "点券不足");
				cm.dispose();
				return;
			}
			if (!cm.canHold(商品id, 商品数量)) {
				cm.playerMessage(1, "背包空位不足");
				cm.dispose();
				return;
			}
			/*if (ItemID == 道具 && cm.haveItem(5210000)) { //双倍重复购买检测
				cm.sendOk("您已经拥有#i" + 5210000 + "##b#z" + 5210000 + "##k无需重复购买。");
				cm.dispose();
				return;
			}*/
			if (ItemID == 宠物) { //道具结算判断
				cm.gainPetItem(商品id, 1);
			} else if (期限 == undefined) {
				cm.gainItem(商品id, 商品数量);
			} else {
				cm.gainItemPeriod(商品id, 商品数量, 期限);
			}
			if (cm.getGMLevel() != 6) { //Gm检测
				if (change == 1) { //余额支付
					cm.addHyPay(余额);
					cm.playerMessage(-1, "您消耗了 " + 余额 + " 余额");
					var show = "#r>>> #e本次购物共计花费：#n#r" + fengefu("" + 余额 + "") + " #d余额#k";
				} else if (change == 2) {
					cm.gainNX( - 点券);
					var show = "#r>>> #e本次购物共计花费：#n#r" + fengefu("" + 点券 + "") + " #d点券#k";
				}
			} else {
				var show = "#r>>> 由于您是尊敬的Gm6，本次购物为您免单，谢谢惠顾～#k";
			}
			//获取道具信息
			var ii = cm.getItemInfo();
			cm.sendOk("\t\t\t\t #r#e-  [购物结算]  -#n#k\r\n\r\n#r>>> #e购入商品：#n#v" + 商品id + "# #r#z" + 商品id + "# #b x #r" + 商品数量 + "#k\r\n\r\n" + show + "#k\r\n\r\n\t请您核对好您的信息，谢谢惠顾，欢迎再次光临～");
			cm.playerMessage(-1,"获得道具："+ii.getName(商品id)+" x"+商品数量+"");
cm.channelMessage(0x19, "[逛商场]" + " : " + "真是豪爽！玩家“"+cm.getChar().getName()+"”在商场购买："+ii.getName(商品id)+" x"+商品数量+"");
			cm.showInstruction("客服祝您购物愉快~！",150,10);
			cm.dispose();
		} else {
			if (期限 == undefined) {
				期限 = "#r无限制#b";
			} else if (期限 > 1000) {
				期限 = "#r" + (期限 / 3600000) + " #b小时";
			} else {
				期限 = "#r" + 期限 + " #b天";
			}
			text = "#r>>> #e商品详情：#n#k\r\n";
			if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
				ITUU[1] = Math.floor(ItemID[choice][1] - ItemID[choice][1] * (ItemID[0][2] / 100));
				ITUU[1] = (Math.floor(ItemID[choice][1] - ItemID[choice][1] * (ItemID[0][2] / 100)) < 1 ? 1 : ITUU[1]);
				ITUU[2] = Math.floor(ItemID[choice][2] - ItemID[choice][2] * (ItemID[0][2] / 100));
				ITUU[2] = (Math.floor(ItemID[choice][2] - ItemID[choice][2] * (ItemID[0][2] / 100)) < 1 ? 1 : ITUU[2]);
				ITUU[3] = "#fUI/CashShop.img/CSDiscount/" + (Math.floor(ItemID[0][2] / 10)) + "#";
				ITUU[4] = "#fUI/CashShop.img/CSDiscount/" + (ItemID[0][2] % 10) + "#";
				ITUU[5] = "#fUI/CashShop.img/CSDiscount/e#";
				ITUU[6] = "#fUI/CashShop.img/CSDiscount/w#";
				text = "#r>>> #e商品详情：#n#r（该类型商品正在打折中↓）#k\r\n";
				ITUU[1] = ITUU[1] * change;
				ITUU[2] = ITUU[2] * change;
			} else {
				ITUU[1] = ItemID[choice][1] * change;
				ITUU[2] = ItemID[choice][2] * change;
			}
			text += "\t#b商品图标：#k#v" + 商品id + "#\t#b购买数量：#r" + change + "#k\r\n";
			text += "\t#b商品名称：#r#z" + 商品id + "##k\r\n";
			text += "\t#b商品使用期限：" + 期限 + "#k\r\n\r\n";
			text += "#r>>> #e商品价格：#n#k\r\n\r\n";
			if (ItemID[0][2] > 0 && ItemID[0][2] < 100) {
				if (ItemID[choice][1] == 0) {
					text += "\t#b折后单价：#r" + fengefu("" + ITUU[2] + "") + " #b点卷#d（无法使用#b余额#d购买）#k" + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
				} else if (ItemID[choice][2] == 0) {
					text += "\t#b折后单价：#r" + fengefu("" + ITUU[1] + "") + " #b余额#d（无法使用#b点券#d购买）#k" + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
				} else {
					text += "\t#b折后单价：#r" + fengefu("" + ITUU[1] + "") + " #b余额 / #r" + fengefu("" + ITUU[2] + "") + " #b点卷#k " + ITUU[6] + ITUU[3] + ITUU[4] + ITUU[5];
				}
			} else {
				if (ItemID[choice][1] == 0) {
					text += "\t#b商品原价：#r" + fengefu("" + ItemID[choice][2] + "") + " #b点卷#d（无法使用#b余额#d购买）#k";
				} else if (ItemID[choice][2] == 0) {
					text += "\t#b商品原价：#r" + fengefu("" + ItemID[choice][1] + "") + " #b余额#d（无法使用#b点券#d购买）#k";
				} else {
					text += "\t#b商品原价：#r" + fengefu("" + ItemID[choice][1] + "") + " #b余额 / #r" + fengefu("" + ItemID[choice][2] + "") + " #b点卷#k";
				}
			}
			text += "\r\n\r\n";
			switch (selection) {
			case 1:
				text += "#r>>> #e支付方式：#r余额#n#k\r\n\r\n";
				var show = "#r" + fengefu("" + ITUU[1] + "") + " #b个余额";
				break;
			case 2:
				text += "#r>>> #e支付方式：#r点券#n#k\r\n\r\n";
				var show = "#r" + fengefu("" + ITUU[2] + "") + " #b点点券";
				break;
			default:
				cm.playerMessage(1, "出现错误");
				cm.dispose();
				break;
			}
			text += "\t#b购买该道具需要支付 " + show + "\r\n";
			text += "\t您是否继续购买？点击#r“是”#b订单立即生效，概不退换！#k\r\n";
			cm.sendYesNo(text);
			ItemID[0][99] = 1; //道具结算开启
			choice = choice;
			choices = change;
			change = selection;
			status = 3;
		}
	}
}
